package com.google.gwt.gfx.client.style;

import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.IsWidget;

public class FillStyle extends GFXStyle {

	public FillStyle(IsWidget buddy) {
		super(buddy);
	}

	public FillStyle(IsWidget buddy, Element element) {
		super(buddy, element);
	}

	public String getColor() {
		return element().getStyle().getBackgroundColor();
	}

	public double getOpacity() {
		return Double.parseDouble(element().getStyle().getOpacity());
	}

	public void setColor(String color) {
		element().getStyle().setBackgroundColor(color);
	}

	public void setOpacity(double opacity) {
		element().getStyle().setOpacity(opacity);
	}

}
